package file;

import java.io.File;
import java.io.IOException;

/**
 * @Author: Miyako
 * @Date: 2024-07-15-16:39
 * @Description:
 */
public class FileDemo02 {
    public static void main(String[] args) throws IOException {
        File files = new File("Miyako/ee/0781");
        if (!files.exists()){
            System.out.println(files.mkdirs()?"成功":"失败");
        }
        else {
            System.out.println("有了");
        }

        File f1 = new File(files,"eeeee.txt");
        if (f1.exists()){
            System.out.println("有了");
        }
        else {
            System.out.println(f1.createNewFile()?"成功":"失败");
        }

    }
}
